package com.peanut.youfupay.service.other.invoice;


import com.peanut.youfupay.entity.request.QueryInvoiceLimitRequest;
import com.peanut.youfupay.entity.response.ResponseMessage;
import com.peanut.youfupay.enums.FunCodeEnum;
import com.peanut.youfupay.service.BaseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 商户查询可开票余额
 *
 * @author peanut
 */
@Slf4j
@Service("queryInvoiceLimitAmountService")
public class QueryInvoiceLimitAmountService extends BaseService {
    /**
     * @param funCodeEnum
     * @param queryInvoiceLimitRequest
     * @return
     * @throws Exception
     */
    public String doBusiness(FunCodeEnum funCodeEnum, QueryInvoiceLimitRequest queryInvoiceLimitRequest) throws Exception {
        log.info("查询可开票余额开始:{}，{}", funCodeEnum, queryInvoiceLimitRequest);
         ResponseMessage responseMessage = applyYouFuByHttpPost(funCodeEnum, queryInvoiceLimitRequest);
        log.info("查询可开票余额结束:{}", responseMessage.getResData());
        return responseMessage.getResData();
    }
}





